#include "stock_engine.h"

int main(int argc, char *argv[]) {

    setbuf(stdout,nullptr);
    log4cplus::ConfigureAndWatchThread configure_thread(LOG4CPLUS_TEXT(LOG4CPLUS_CONFIG_PATH));
    LOG4CPLUS_INFO(COMMON_LOGGER, "=============== stock_engine start ===============");
    char path_buffer[FILENAME_MAX];
    if(getcwd(path_buffer, FILENAME_MAX) != nullptr) {
        LOG4CPLUS_INFO(COMMON_LOGGER, path_buffer);
    }

    stock_engine se;
    se.start();

    return 0;
}
